home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / BASIC / LIB / EVENTSHELL / DOCS / Pointer < prev    next >
Text File  |  1996-01-27  |  3KB  |  128 lines

  1.  
  2. PROCshell_PointerGetPosition()
  3. =>    int    mouse x coord (OS units) updated on return
  4.     int    mouse y coord (OS units) updated on return
  5.  
  6. --------------------------------------------------------
  7.  
  8. PROCshell_PointerGetWindow()
  9. =>    int    window handle (updated on return)
  10.  
  11. Returns the handle of the window the pointer is currently
  12. over
  13.  
  14. --------------------------------------------------------
  15.  
  16. PROCshell_PointerGetIcon()
  17. =>    int    icon handle (updated on return)
  18.  
  19. Returns the handle of the icon the pointer is currently
  20. over (-1 for no icon)
  21.  
  22. --------------------------------------------------------
  23.  
  24. PROCshell_PointerGetMouseButton()
  25. =>    int    mouse button (updated on return)
  26.  
  27. Returns the mouse button used for the last click event
  28.  
  29. --------------------------------------------------------
  30.  
  31. FNshell_PointerIsBelowWindowCentre()
  32. =>    int    window handle
  33.  
  34. <=    bool    TRUE if mouse pointer is below the centre
  35.          of the window's visible area, otherwise
  36.          FALSE
  37.  
  38. --------------------------------------------------------
  39.  
  40. FNshell_PointerIsAboveWindowCentre()
  41. =>    int    window handle
  42.  
  43. <=    bool    TRUE if mouse pointer is above the centre
  44.          of the window's visible area, otherwise
  45.          FALSE
  46.  
  47. --------------------------------------------------------
  48.  
  49. FNshell_PointerIsRightOfWindowCentre()
  50. =>    int    window handle
  51.  
  52. <=    bool    TRUE if mouse pointer is right of the
  53.          centre of the window's visible area,
  54.          otherwise FALSE
  55.  
  56. --------------------------------------------------------
  57.  
  58. FNshell_PointerIsLeftOfWindowCentre()
  59. =>    int    window handle
  60.  
  61. <=    bool    TRUE if mouse pointer is left of the
  62.          centre of the window's visible area,
  63.          otherwise FALSE
  64.  
  65. --------------------------------------------------------
  66.  
  67. PROCshell_PointerGetMovementVector()
  68. =>    int    last known x coord (OS units)
  69.     int    last known y coord (OS units)
  70.     int    current x coord (OS units)
  71.     int    current y coord (OS units)
  72.     bool    TRUE direction was up
  73.     bool    TRUE direction was down
  74.     bool    TRUE direction was left
  75.     bool    TRUE direction was right
  76.     int    x displacement (OS units)
  77.     int    y displacement (OS units)
  78.  
  79. Given two sets of screen coordinates this routine
  80. returns the direction (one of the directions will be
  81. TRUE, the others FALSE) and the magnitude of the
  82. displacement. Coordinates are relative to the bottom
  83. left of the screen.
  84.  
  85. The current pointer position can be read using
  86. PROCshell_PointerGetPosition.
  87.  
  88. --------------------------------------------------------
  89.  
  90. PROCshell_PointerGetLastMovementVector()
  91. >=    bool    TRUE direction was up
  92.     bool    TRUE direction was down
  93.     bool    TRUE direction was left
  94.     bool    TRUE direction was right
  95.     int    x displacement (OS units)
  96.     int    y displacement (OS units)
  97.  
  98. This routine returns the direction (one of the
  99. directions will be TRUE, the others FALSE) and
  100. the magnitude of the last displacement.
  101. Coordinates are relative to the bottom left of
  102. the screen.
  103.  
  104. --------------------------------------------------------
  105.  
  106. PROCshell_PointerChangeShape()
  107. =>    str    pointer sprite name
  108.     int    hot spot x offset (OS units)
  109.     int    hot spot y offset (OS units)
  110.  
  111. Changes the pointer shape to the specified sprite.
  112.  
  113. --------------------------------------------------------
  114.  
  115. PROCshell_PointerLimit()
  116. =>    int    window handle
  117.  
  118. Limits mouse pointer movement to the area of the
  119. specified window.
  120.  
  121. --------------------------------------------------------
  122.  
  123. PROCshell_PointerRemoveLimits
  124. =>    None
  125.  
  126. Removes the pointer bounding box
  127.  
  128. --------------------------------------------------------